package com.zenithmind.version.pojo.query;

import com.zenithmind.common.query.BaseQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 仓库查询DTO
 *
 * @author ZenithMind Team
 * @since 2025-01-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "仓库查询DTO")
public class RepositoryQueryDTO extends BaseQuery {

    /**
     * 关键词
     */
    @Schema(description = "关键词")
    private String keyword;

    /**
     * 仓库名称
     */
    @Schema(description = "仓库名称")
    private String name;

    /**
     * 仓库类型
     */
    @Schema(description = "仓库类型")
    private Integer repositoryType;

    /**
     * 是否私有
     */
    @Schema(description = "是否私有")
    private Boolean isPrivate;

    /**
     * 是否归档
     */
    @Schema(description = "是否归档")
    private Boolean isArchived;

    /**
     * 仓库语言
     */
    @Schema(description = "仓库语言")
    private String language;

    /**
     * 许可证
     */
    @Schema(description = "许可证")
    private String license;

    /**
     * 创建者ID
     */
    @Schema(description = "创建者ID")
    private String creatorId;

    /**
     * 状态
     */
    @Schema(description = "状态")
    private Integer status;

    /**
     * 是否包含已删除
     */
    @Schema(description = "是否包含已删除")
    private Boolean includeDeleted;

    /**
     * 排序字段
     */
    @Schema(description = "排序字段")
    private String sortField;

    /**
     * 排序方向
     */
    @Schema(description = "排序方向")
    private String sortDirection;

    /**
     * 开始时间
     */
    @Schema(description = "开始时间")
    private String startTime;

    /**
     * 结束时间
     */
    @Schema(description = "结束时间")
    private String endTime;
}
